package com.wt.chat.mapper;

import com.wt.chat.entity.Group;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GroupMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Group record);

    int insertSelective(Group record);

    Group selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Group record);

    int updateByPrimaryKey(Group record);

	/**
	 * 查询所有
	 * @param condition
	 * @return
	 */
	List<Group> findByCondition(@Param("condition") Group condition);
}